package com.example.demo;


public class Span {

    String traceId;

    private int spanId;


    private int parentId;

    private String key;


    private long startTime;

    private int costMs;


    private long endTime;


    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public int getSpanId() {
        return spanId;
    }

    public void setSpanId(int spanId) {
        this.spanId = spanId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getCostMs() {
        return costMs;
    }

    public void setCostMs(int costMs) {
        this.costMs = costMs;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }


    @Override
    public String toString() {
        return "Span{" +
                "traceId='" + traceId + '\'' +
                ", spanId=" + spanId +
                ", parentId=" + parentId +
                ", key='" + key + '\'' +
                ", startTime=" + startTime +
                ", costMs=" + costMs +
                ", endTime=" + endTime +
                '}';
    }
}
